package com.itcs.jpa;

/**
 * @ClassName: Pager
 * @Description: TODO
 * @author CHEN-HF
 * @date 2017年12月14日 上午9:55:08
 * 
 */
public class Pager implements java.io.Serializable{

	private static final long serialVersionUID = 1579184889043455335L;

	public static int DEFALUT_PAGESIZE = 20;// 默认页面记录条数

	private static int DEFALUT_PAGEINDEX = 1;
	//
	public final static int QUERY_TYPE_ALL = 0;//

	public final static int QUERY_TYPE_LIST = 1;//

	public final static int QUERY_TYPE_COUNT = 2;//

	public final static String EXPORT_TYPE_XLS = "xls";// 导出excel

	public final static String EXPORT_TYPE_PDF = "pdf";// 导出pdf

	public final static String EXPORT_TYPE_PRINT = "print";// 打印

	public final static int type = 0;

	private int page = 1;// 当前页
	private int rows = 10;// 每页显示记录数
	
	private Integer limit = 10; //默认每页显示10条
	private Integer offset = 0; //记录位置

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public static int getType() {
		return type;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}
}
